<?php
/**
 *
 * @author Quentin Laujac, Charles Hurtevent
 *
 */
require_once ("../enums/enums.php");
require_once ("../services/AuthentificationService.php");
require_once ("../services/ClientService.php");
require_once ("../bean/data/Commande.php");
require_once ("../bean/data/Utilisateur.php");

$clientService = new ClientService ();
session_start ();
$client = $_SESSION ['login'];
$listCommande = $clientService->getHistoriqueCommande ( $client );
if ($listCommande != null) {
	$_SESSION ['listCommande'] = $listCommande->getArrayCopy ();
}
$commande = new Commande ();
header ( 'Location: ../web/client_historique_commandes.php' );
exit ();
